package org.rsbot.event.impl;

import java.awt.Graphics;
import org.rsbot.bot.Bot;
import org.rsbot.client.Client;
import org.rsbot.event.listeners.TextPaintListener;
import org.rsbot.util.StringUtil;

public class TCamera
  implements TextPaintListener
{
  private Client client;

  public TCamera(Bot paramBot)
  {
    this.client = paramBot.getClient();
  }

  public int drawLine(Graphics paramGraphics, int paramInt) {
    String str1 = "Camera Position (x,y,z): (" + this.client.getCamPosX() + ", " + this.client.getCamPosY() + ", " + this.client.getCamPosZ() + ")";
    String str2 = "Camera Angle (pitch, yaw): (" + this.client.getCameraPitch() + ", " + this.client.getCameraYaw() + ")";

    StringUtil.drawLine(paramGraphics, paramInt++, str1);
    StringUtil.drawLine(paramGraphics, paramInt++, str2);

    return paramInt;
  }
}